package com.sendi.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * SysHostTree entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_host_tree")
public class SysHostTree implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer parentid;
	private String nodeName;
	private String hostname;
	private Integer hostId;
	private String ishost;
	private String hosttype;

	// Constructors

	/** default constructor */
	public SysHostTree() {
	}

	/** full constructor */
	public SysHostTree(Integer parentid, String nodeName, String hostname,
			Integer hostId, String ishost, String hosttype) {
		this.parentid = parentid;
		this.nodeName = nodeName;
		this.hostname = hostname;
		this.hostId = hostId;
		this.ishost = ishost;
		this.hosttype = hosttype;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "parentid")
	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	@Column(name = "node_name", length = 200)
	public String getNodeName() {
		return this.nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	@Column(name = "hostname", length = 200)
	public String getHostname() {
		return this.hostname;
	}

	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	@Column(name = "host_id")
	public Integer getHostId() {
		return this.hostId;
	}

	public void setHostId(Integer hostId) {
		this.hostId = hostId;
	}

	@Column(name = "ishost", length = 2)
	public String getIshost() {
		return this.ishost;
	}

	public void setIshost(String ishost) {
		this.ishost = ishost;
	}

	@Column(name = "hosttype", length = 20)
	public String getHosttype() {
		return this.hosttype;
	}

	public void setHosttype(String hosttype) {
		this.hosttype = hosttype;
	}

}